﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TwitterNameTableAdapters;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        GridView1.ShowHeader =  false ;

        UsersTableAdapter UserAdapter = new UsersTableAdapter();
        //GridView GridView1 = new GridView();
        try
        { //int num=Convert.ToInt16(Request.QueryString["id"]);
            GridView1.DataSource = UserAdapter.GetData();
            GridView1.DataBind();


            //
            //NorthwindTableAdapters.ProductsTableAdapter productsAdapter = new NorthwindTableAdapters.ProductsTableAdapter();
            // For each product, double its price if it is not discontinued and 
            // there are 25 items in stock or less 
            /*Twitter.ProductsDataTable products = UserAdapter.GetData();
            foreach (Twitter.ProductsRow product in products)
                if (!product.Discontinued && product.UnitsInStock <= 25)
                    product.UnitPrice *= 2;
            // Update the products 
            productsAdapter.Update(products);
            */
            //
            //Response.Write("Значение параметра id = " + Request.QueryString["id"]);
        }
        catch (Exception) { ;}

   }
}
